import request from '@/utils/request'

export const getMerchantListService = () => {
	return request.get('/merchant/all')
}

export const addMerchantService = (merchant) => {
	return request.post('/merchant/add', merchant)
}

export const deleteMerchantService = (id) => {
	return request.delete('/merchant/delete?id=' + id)
}
export const getMyStoreService = () => {
	return request.get('/merchant/myStore')
}

export const updateMerchantService = (newStore) => {
	return request.patch('/merchant/update', newStore)
}
